﻿app.factory('Person',
    ['$resource',
        function($resource) {
            return $resource('api/people/:id', { id: '@Id' },
                {
                    all: { method: 'GET', isArray: true },
                    add: { method: 'POST' },
                    get: { method: 'GET' },
                    save: { method: 'PUT' },
                    remove: { method: 'DELETE' },
                }
            );
        }]);